## --------------------------------------------------------------------
## ykit FADBQuoteServer
## --------------------------------------------------------------------


    set(SOURCES_files_SourceFiles
      CTPServer.cpp	  
	  CTPServer.h	  
	  YKQuote.cpp	  
	  YKQuote.h	  
	  YKSock.cpp	  
	  YKSock.h	 
	  #YKRedis.cpp
	  #YKRedis.h
	  YKRedisHandle.h
	  YKMysqlHandle.h
	  )
    source_group("Source Files" FILES ${SOURCES_files_SourceFiles})
	
	#set(SOURCES_files_hiredis
    #  ../inc/hiredis/dict.c	     
	#  ../inc/hiredis/hiredis.c	  	
	#  ../inc/hiredis/net.c
	#  ../inc/hiredis/sds.c
	#  ../inc/hiredis/src/win32fixes.c
	#  )
    #source_group("hiredis" FILES ${SOURCES_files_hiredis})
	#
	#set(SOURCES_files_xredis
    #  ../inc/xredis/xRedisClient.cpp	     
	#  ../inc/xredis/xRedisClient_connection.cpp
	#  ../inc/xredis/xRedisClient_hashs.cpp
	#  ../inc/xredis/xRedisClient_keys.cpp
	#  ../inc/xredis/xRedisClient_lists.cpp
	#  ../inc/xredis/xRedisClient_sets.cpp
	#  ../inc/xredis/xRedisClient_sortedsets.cpp
	#  ../inc/xredis/xRedisClient_strings.cpp
	#  ../inc/xredis/xRedisPool.cpp
	#  )
    #source_group("xredis" FILES ${SOURCES_files_xredis})



    set(SOURCES_SourceFiles
      ${SOURCES_files_SourceFiles}
      #${SOURCES_files_hiredis}
      #${SOURCES_files_xredis}
    )


  set(SOURCES_
    ${SOURCES_SourceFiles}
  )
    
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc/libevent)
#INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc/libevent)

  if(WIN32)	
   SET(CMAKE_CXX_FLAGS_DEBUG "/MTd /Z7 /Od")
   SET(CMAKE_CXX_FLAGS_RELEASE "/MT /O2")
   SET(CMAKE_CXX_FLAGS_MINSIZEREL "/MT /O2")
   SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MTd /Z7 /Od")
endif(WIN32)

SET(ProjectName FADBQuoteServer)

MESSAGE(STATUS "This is BINARY dir " ${${ProjectName}_BINARY_DIR}) 
MESSAGE(STATUS "This is SOURCE dir " ${${ProjectName}_SOURCE_DIR}) 
#SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/lib)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})

ADD_EXECUTABLE(${ProjectName} ${SOURCES_})
#Add_Definitions(-DSTRATEGYARBITRAGEA_EXPORTS)
Add_Definitions(-DUNICODE -D_UNICODE)

ADD_DEPENDENCIES(${ProjectName} FAQuote FASockServer FARedis FAMysql FAJson)
TARGET_LINK_LIBRARIES(${ProjectName} ws2_32 event FABase FARedis FAMysql FAJson)

if(NOT WIN32)
add_definitions(-D_PORT_VERSION -Wno-deprecated  -fPIC)
if(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Release" OR "MinSizeRel" OR "RelWithDebInfo")
add_definitions(-DNDEBUG)
endif(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Release" OR "MinSizeRel" OR "RelWithDebInfo")
endif(NOT WIN32)
